package com.byxy.ssm.mapper;

import com.byxy.ssm.pojo.Items;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ItemsMapper {

    @Insert("insert into items(introduction,img,name,price) values (#{introduction},#{img},#{name},#{price}) ")
    void save(Items item);

    @Select("select * from items")
    List<Items> find();
}
